package com.guigu.dealservice.controller;

import com.guigu.common.utils.R;
import com.guigu.dealservice.entity.Pending;
import com.guigu.dealservice.service.PendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/dealservice/pending")
public class PendingController {
    @Autowired
    private PendingService pendingService;
    @GetMapping("/queryPending")
    public R queryPending(){
        Pending pending = pendingService.queryPending() ;
        return R.ok().data("pending",pending);
    }
}
